package com.briup.day06;

/**
 * 画出内存图（课堂练习）
 * @author lining
 * @date 2024/1/15 11:06
 */
public class TestClassroom {
    public static void main(String[] args) {
        //表示当前信息
        Classroom c = new Classroom();
        c.id = 404;
        c.num = 70;
        //表示老师
        Teacher t = new Teacher();
        t.id = 101;
        t.name = "lining";
        t.salary  =3500;
        //表示多个学生
        Student s = new Student();
        s.name = "tom";
        Student s2 = new Student();
        s2.name = "bob";

        Student[] stus = {s,s2};

        //表示教室里有一个老师
        c.teacher = t;
        //表示教室里有多个学生
        c.students = stus;


        // 新增老师信息
        
    }
}
